package com.dxy.md.service.impl;

import com.dxy.md.core.DataSource;
import com.dxy.md.model.po.UserPO;
import com.dxy.md.mapper.UserMapper;
import com.dxy.md.service.UserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author builder
 * @since 2022-03-25
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, UserPO> implements UserService {

    @Override
    @DataSource(name = "ds1")
    public UserPO findUserById(Integer id) {
        return baseMapper.selectById(id);
    }
}
